package FactoryMethod.example;

import FactoryMethod.example.framework.Factory;
import FactoryMethod.example.framework.Product;
import FactoryMethod.example.idcard.IDCardFactory;

/**
 * @author zsh
 * @Description
 * @create 2022-05-11 20:32
 */
public class Main {
    public static void main(String[] args) {
        Factory factory = new IDCardFactory();
        Product c1 = factory.create("zsh1");
        Product c2 = factory.create("zsh2");
        Product c3 = factory.create("zsh3");
        Product c4 = factory.create("zsh4");
        c1.use();
        c2.use();
        c3.use();
        c4.use();
    }
}
